package com.junxonline.plat.dao.repository;

import com.junxonline.plat.dao.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryRepository extends JpaRepository<Category, Long>, JpaSpecificationExecutor<Category> {

    Category findByCategoryId(Long categoryId);

    List<Category> findByCategoryIdIn(Long[] categoryIds);

}
